package com.ruoyi.dj.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import com.ruoyi.common.core.domain.entity.SysDept;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.Date;
import java.util.List;

/**
 * 新建格对象 excel_table
 *
 * @author ruoyi
 * @date 2024-04-29
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class ExcelTable extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * $column.columnComment
     */
    private Long tableId;

    /**
     * 表格名称
     */
    @NotNull(message = "表格名称不能为空")
    @Excel(name = "表格名称")
    private String tableName;

    /**
     * 派出所id
     */
    @Excel(name = "派出所id")
    private String deptId;

    /**
     * 名称首字母
     */

    @Excel(name = "名称首字母")
    @NotNull(message = "名称首字母不能为空")
    private String szm;
    private Integer isType;
    private List<SysDept> depts;

    @Excel(name = "被抽点单位")
    @Size(min = 1, message = "请选择抽点单位")
    private List<Long> cddw;

    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date startTime;

    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date endTime;

    @NotNull(message = "参数配置不能空")
    private String cssz;
    private List<Rhtxdj> rhtxdjs;
    private List<Long> deptIds;
    private List<Long> parentIds;
    private List<Long> dictCodes;

}